package com.xbongbong.pro.enums.workrecord.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 钉钉待办枚举类
 */
@Getter
public enum WorkrecordStatusEnum {

    /**
     * 撤回审批时，实例应被终止
     */

    TERMINATED("enum.workrecordStatus.name.terminated","TERMINATED"),


    COMPLETED("enum.workrecordStatus.name.completed","COMPLETED"),


    CANCELED("enum.workrecordStatus.name.canceled","CANCELED"),
    ;

    private String name;

    private String alias;

    WorkrecordStatusEnum(String name, String alias) {
        this.name = name;
        this.alias = alias;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
